home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995 February: Tool Chest / Dev.CD Feb 95 / Dev.CD Feb 95.toast / Sample Code / Snippets / Development Tools & Languages / AEGestalt 1.0 / About.h < prev    next >
Encoding:
Text File  |  1992-07-15  |  1.1 KB  |  51 lines  |  [TEXT/MPS ]

  1. //     About.h
  2. //     Copyright © 1992 by Apple Computer, Inc. All rights reserved.
  3. //    Kent Sandvik DTS
  4. //    This file contains the About box code including any adorners/behaviors
  5. //    The resources are placed in the project .r file
  6. //    Version Info (latest first):
  7. //
  8. //    <1>        khs        1.0        First final version
  9.  
  10.  
  11. #ifndef __ABOUT__
  12. #define __ABOUT__
  13.  
  14. #ifndef __MACAPP__
  15. #include <MacApp.h>
  16. #endif
  17.  
  18. #ifndef __RESOURCES__
  19. #include <Resources.h>
  20. #endif
  21.  
  22.  
  23. //    CONSTANTS
  24.  
  25. const unsigned short phAboutBox = 12000;        // our resource which resides in the .r file
  26. const ResType kVersInfoType = 'vers';            // for getting out the version info from the binary
  27. const ResNumber kVers1InfoID = 1;
  28. const IDType kBlueMetalLook = 'blmt';            // our AboutBox adorner ID
  29.  
  30.  
  31. //    FUNCTION PROTOTYPES
  32.  
  33. void CreateAboutBox();                            // the one and only function, place this inside the
  34. // TApplication->DoAboutBox(), and you are up and running!
  35.  
  36.  
  37. //    CLASSES
  38. //    Our adorner used inside the About Box resource
  39. class TMetalBlueFill : public TAdorner
  40. {
  41. public:
  42.     TMetalBlueFill();
  43.     virtual pascal void Draw(TView* itsView,
  44.                              const VRect&        /*area*/);
  45. };
  46.  
  47.  
  48.  
  49. #endif __ABOUT__
  50.  
  51.